/************* UN-TWEAKABLES **************/
float4x4 wvp ;
float4 Color ;

/* data from application vertex buffer */
struct appdata {
	float4 Position	: POSITION;
};

/* data passed from vertex shader to pixel shader */
struct vertexOutput {
	float4 Position : POSITION;
};

/*********** vertex shader ******/

vertexOutput simpleVS(appdata IN) {
	vertexOutput OUT = (vertexOutput)0;
	OUT.Position = mul (IN.Position, wvp);
	return OUT;
}

/********* pixel shader ********/

float4 simplePS(vertexOutput IN) : COLOR {
	return Color;
}

/*************/

technique main
{
	pass p0
	{
		VertexShader = compile vs_2_a simpleVS();
		PixelShader = compile ps_2_a simplePS();
		ZEnable = true;
		ZWriteEnable = true;		
		CullMode=None; 
	}
}

/***************************** eof ***/
